<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/developer/list" id="searchForm">
		<div class="col-md-12"> 
			<div class="row">
					
				<!-- 开发商名 -->
		  		<div class="col-md-6">
		        	<div class="form-group">
		          		<label  class="col-md-3 control-label">${_res["developer.developerName"]}</label>
		         		<div class="col-md-9">
		          				<input type="text" class="form-control" name="customerDeveloper.l_companyname" placeholder="${_res['developer.developerName']}" value="${paramMap['customerDeveloper.l_companyname']}"/>
		         		</div>
		       		</div>
		    	</div>
			    
			    <!-- 用户状态 -->
		    	<div class="col-md-5">
		    		<div class="form-group">
		           		<label class="col-md-4 control-label">${_res["customer.status"]}</label>
		           		<div class="col-md-8">
		               		<#dict type="select" name="customer.f_status" dictCode="COMMON_STATUS" defaultValue="${paramMap['customer.f_status']}"/>
		           		</div>
		       		</div>
		    	</div>
		    
		  	</div>
		  	<div class="row">
		  		<!-- 公司成立时间 -->
		  		<div class="col-md-6">
			    	<div class="form-group">
			        	<label class="col-md-3 control-label">${_res["developer.founddate"]}</label>
			        	<div class="col-md-5">
			             	<input type="text" style="width:85%" class="laydate-icon form-control layer-date" onclick="laydate()" name="customerDeveloper.gt_founddate"   placeholder="${_res['developer.founddateStart']}" value="${paramMap['customerDeveloper.gt_founddate']}"/>
			         	</div>
			       		<div class="col-md-4">
			             	<input type="text" style="width:100%" class="laydate-icon form-control layer-date" onclick="laydate()" name="customerDeveloper.le_founddate"   placeholder="${_res['developer.founddateEnd']}" value="${paramMap['customerDeveloper.le_founddate']}"/>
			         	</div>
			       </div>
			    </div>
			    
		    	<div class="col-md-3">
		        	<div class="form-group">
		          		<label class="col-md-1 control-label"></label>
		          		<div class="col-md-7">
		             		<button type="button" class="btn btn-primary pull-right" onClick="ajaxForm('content','searchForm')">
		          				<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
		          			</button>
		           		</div>
		        	</div>
		    	</div>
		  	</div>
		 </div>
	 </form>
</div>
	<div id="dataTable" class="ibox row searchLineWrap">
		
		<div class="float-e-margins">
		<button type="button" class="btn btn-primary pull-left" onclick="ajaxContent('/admin/toUrl?toUrl=/realty/customer/developer/addDeveloper.html');">
			${_res["add.developer"]}
		</button> 
	</div>
	
	<table class="table table-bordered table-hover dataTables-example">
	    <thead>
	        <tr>
	           <th>${_res["developer.developerName"]}</th>
	           <th>${_res["developer.employees"]}</th>
	           <th>${_res["developer.founddate"]}</th>
	           <th>${_res["developer.createddtm"]}</th>
	           <th>${_res["developer.companyprofile"]}</th>
	           <th>${_res["customer.status"]}</th>
	           <th>${_res["system.operator"]}</th>
	        </tr>
	    </thead>
	    <tbody>
	        <%for (developer in customerDeveloperList!){%> 
	         <tr class="gradeC">
	            <td>${developer.companyname!}</td>
	            <td>${developer.employees!,numberFormat="###,###"}</td>
	            <td>${developer.founddate!,dateFormat="yyyy-MM-dd"}</td>
	            <td>${developer.createdate!,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
	            <td>${developer.companyprofile!}</td> 
	            <td><#dict type="lable" dictCode="COMMON_STATUS" value="${developer.customer_status!}" /></td> 
	            <td>
	            	<% if(hasPrivilegeUrl("developerDetail")){ %>
	            	  <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/developer/detail/${developer.id!}')">${_res["system.view"]}</button>
	                <% }
	                if(hasPrivilegeUrl("input")){ 
	                	if(developer.authenticationstatus<90){
	                %>
	                  <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/developer/input/${developer.id!}')">${_res["commission.rule.edit"]}</button>
	                <% }}%>
	                <% 
	                if(developer.authenticationstatus < 90 ){
	                	if(hasPrivilegeUrl("toVerify")){
		            %>
		                  <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/developer/toVerify/${developer.id!}')" >${_res["user.review.check"]}</button>
		            	<%}
	            	} 
	            	if(developer.authenticationstatus==90 && developer.customer_status=="0" && hasPrivilegeUrl("freeze")){
	            	 %>
		            	  <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/developer/freeze/${developer.customer_id}')">${_res["system.freeze"]}</button>
		       		<%}
	       			if(developer.authenticationstatus==90 && developer.customer_status=="1" && hasPrivilegeUrl("unfreezeDeveloper")){
		       		%>
		       			  <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/developer/unfreeze/${developer.customer_id}')">${_res["system.unfreeze"]}</button>
	       			<%}%>
	            </td>
	       </tr>
	       <%}%>
	    </tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"/>
	</div>
	<#nav />
	</div>
